import request from '@/util/request' //引入封装好的 axios 请求

//用户接口模块
//登录接口
export function login(identify, password) { //登录接口
    return request.get('/commons/users/auth',{
        params:{
            identify:identify,
            password: password
        }
    })
}
//注册接口
export function reg(regUser) {
    return request.post('/commons/users/',regUser)
}

//注销接口
export function logout() {
    return request.get('/commons/users/logout')
}